package VN.EDU.IMIC.PROJECTLEADER.NGUYENVANDOAN.SWINGDEMO.Controllers;

import java.sql.Connection;

import VN.EDU.IMIC.PROJECTLEADER.NGUYENVANDOAN.SWINGDEMO.Entity.UserEntity;
import VN.EDU.IMIC.PROJECTLEADER.NGUYENVANDOAN.SWINGDEMO.Models.LoginModels;

public class LoginControllers {
    private final LoginModels m_objModels;

    public LoginControllers(Connection objConnection) {
        m_objModels = new LoginModels(objConnection);
    }

    public boolean CheckUserInfo(UserEntity objUser) {
        boolean bResult = false;
        try {
            bResult = m_objModels.CheckElement(objUser);
        } catch (Exception e) {
            // Write log *.txt
            e.printStackTrace();
        }
        return bResult;
    }
}
